package com.ruoyi.system.service.impl;

import com.ruoyi.system.api.domain.SysRegion;
import com.ruoyi.system.mapper.SysRegionMapper;
import com.ruoyi.system.service.ISysRegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

@Service
public class SysRegionServiceImpl implements ISysRegionService{

	@Autowired
	private SysRegionMapper sysRegionMapper;
	
	@Override
	public List<SysRegion> list(SysRegion sysRegion) {
		return sysRegionMapper.list(sysRegion);
	}

    @Override
    public List<SysRegion> getListByIds(Set<String> ids) {
		return (ids == null || ids.isEmpty()) ? new ArrayList<>() : sysRegionMapper.selectbyIds(ids);
    }

}
